from django.db import models
from .perms_config import ALL_PERMS
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    bio = models.TextField(max_length=500, blank=True)
    location = models.CharField(max_length=30, blank=True)
    birth_date = models.DateField(null=True, blank=True)

    class Meta:
        verbose_name = 'auth_user'
        verbose_name_plural = verbose_name
        db_table = 'auth_user'
        permissions = ALL_PERMS
